<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
        }

        span{
            width: 100px;
            height: 100px;
            display: inline-block;
            border: 1px solid #000;
        }

        .hezi1{
            /*margin-right: 50px;*/
            margin-bottom: 100px;
        }

        .hezi2{
            /*margin-left: 50px;*/
            margin-bottom: 100px;
        }

        div{
            height: 100px;
            border: 1px solid #000;
        }

        .box1 {
            margin-top: 120px;
            margin-bottom: 100px;
        }

        .box2{
            margin-top: 120px;
        }

    </style>
</head>
<body>
<span class="hezi1">我是span</span><span class="hezi2">我是span</span>
<div class="box1">我是div</div>
<div class="box2">我是div</div>
</body>
</html>